﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LibraryOut.aspx.cs" Inherits="Comod_LibraryOut" %>
<html>
<head>
<title>无标题页</title>
<link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/rl.js"></script>
<script type="text/javascript" src="../js/submit.js"></script>
<script type="text/javascript">
function getDownListData(paramValue)
  {

    if(paramValue!="")
    {
      
       document.getElementById("Label1").innerHTML=paramValue.split(',')[0];
       document.getElementById("Label4").innerHTML=paramValue.split(',')[1];
    }
    else
    {
       document.getElementById("Label1").innerHTML="";
    }
   
        document.getElementById("Msg").style.visibility="hidden";
        
  }
    
   

//选择仓库
function selectWarehouse(stockId,comodBarcode,txtName)
{
    var result =window.showModalDialog("selectWarehouse.aspx?id="+stockId+"&comodBarcode="+comodBarcode,"","dialogWidth:600px;dialogHeight:400px;scroll:yes;help:0;status:no;");
    if(result!=undefined){
        var vrr = result.split("|");//拆分ＩＤ和库房名称
        document.all(txtName).value=vrr[1];
        document.all('WId'+stockId).value=vrr[0];
    }else{
        alert('您未选择仓库！');
    }
}

</script>

<link href="../js/loading.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/loading.js" charset="gb2312"></script>
<body>
    <form id="form1" runat="server" onSubmit=" checknull(this)">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" height="22">
                    <img src="../images/module.gif" width="20" height="22"></td>
                <td >
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td align="right"><a href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px" >
                </td>
            </tr>
        </table>
        <table border="0" width="99%" cellpadding="1" cellspacing="1" class="tabGg">
            <tr>
                <th colspan="4" bgcolor="#ffffff"  style="height: 24px"><span class="font14">销售出库</span><br />
                    (单号:<asp:Label ID="lblSalesCode" runat="server"></asp:Label>)
                </th>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" width="15%">出库日期：</td>
              <td  bgcolor="#FFFFFF" class="right_bg" width="35%"><asp:Label ID="Label3" runat="server"></asp:Label></td>
                <td  bgcolor="#FFFFFF" class="r_bg" width="15%">客户名称：</td>
                <td  bgcolor="#FFFFFF" class="right_bg" width="35%"><asp:Label ID="txtname" runat="server" ForeColor="Red"></asp:Label></td>
            </tr><tr>
                <td bgcolor="#ffffff" class="r_bg" >
                    配送员：</td>
                <td bgcolor="#ffffff" class="right_bg" >
              <asp:DropDownList ID="ddlDept" runat="server" OnSelectedIndexChanged="ddlDept_SelectedIndexChanged" AutoPostBack="True" >
              </asp:DropDownList>
              <asp:DropDownList ID="ddlName" runat="server" check_null="配送员不能有空">
              </asp:DropDownList></td>
                <td bgcolor="#ffffff" class="r_bg" >
                    出货日期：</td>
                <td bgcolor="#ffffff" class="right_bg">
              <asp:Label ID="Label4" runat="server"></asp:Label></td>
            </tr>
              <tr>
                    <td bgcolor="#ffffff" class="r_bg" >电话：</td>
                    <td bgcolor="#ffffff" class="right_bg">
                
                        <asp:Label ID="txtTel" runat="server" ForeColor="Red"></asp:Label></td>
                    <td bgcolor="#ffffff" class="r_bg">销售备注：</td>
                    <td bgcolor="#ffffff" class="right_bg"><asp:Label ID="Label5" runat="server"></asp:Label></td>
              </tr>
            <tr>
                <td bgcolor="#ffffff"  colspan="4" align="center" style="padding:1px;">
                    <asp:GridView ID="GvData" runat="server" AutoGenerateColumns="False" CssClass="gridview"  EmptyDataText="没有数据" Width="100%">
                        <RowStyle Height="25px" />
                        <PagerSettings Visible="False" />
                        <Columns>
                            <asp:BoundField DataField="SalesId" HeaderText="Id" ItemStyle-HorizontalAlign="Center" />
                            <asp:BoundField DataField="comodName" HeaderText="名称">
                                <ItemStyle HorizontalAlign="Center" /> 
                            </asp:BoundField>
                            <asp:BoundField DataField="modul" HeaderText="型号">
                                <ItemStyle HorizontalAlign="left" /> 
                            </asp:BoundField>
                            <asp:BoundField DataField="number" HeaderText="数量">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Unit" HeaderText="单位">
                                <ItemStyle HorizontalAlign="Center" /> 
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="单价">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("prices","{0:f2}") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="合计">
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("TotalMoney","{0:f2}") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="仓库">
                                <ItemTemplate>
                                  
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView></td>
            </tr>
            
            <tr>
                <th bgcolor="#ffffff" class="r_bg" >
                    备 &nbsp; 注：</th>
                <td bgcolor="#ffffff" class="right_bg">
                    <asp:TextBox ID="txtContent" runat="server" CssClass="input1" Width="400px" ></asp:TextBox>                   </td>
                <td bgcolor="#ffffff" class="r_bg">操作人员：</td>
                <td bgcolor="#ffffff" class="right_bg"><asp:Label ID="lblName" runat="server"></asp:Label></td>
            </tr>
            
            
           
            
            <tr>
                <th bgcolor="#FFFFFF" class="r_bg" >                </th>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg">
                    <asp:Button ID="btnAdd" CssClass="submit" runat="server" Text="确认并打印" OnClientClick="return checknull(this.form)" OnClick="btnAdd_Click" />                </td>
            </tr>
      </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td style="text-align: center">
                    <asp:Label ID="lblmessage" runat="server"></asp:Label></td>
            </tr>
        </table>
        <asp:HiddenField ID="Hidware" runat="server" />
        <asp:HiddenField ID="Hidwareid" runat="server" />
        <asp:HiddenField ID="HidRest" runat="server" />
        <asp:HiddenField ID="hidPH" runat="server" />
        <asp:HiddenField ID="HidSaleCode" runat="server" />
        <asp:HiddenField ID="Hidid" runat="server" />
        <asp:HiddenField ID="HidBrand" runat="server" />
        <asp:HiddenField ID="hidsj" runat="server" />
        <asp:HiddenField ID="HidName" runat="server" />
        <asp:HiddenField ID="HidUnit" runat="server" />
        <asp:HiddenField ID="HidModuid" runat="server" />
    </form>
</body>
</html>
